package com.clqteam.serviceimpl;

import com.clqteam.dao.showShDao;
import com.clqteam.daoimpl.showShDaoImpl;
import com.clqteam.service.showShService;

import net.sf.json.JSONObject;

public class showShServiceImpl implements showShService{
	showShDao sDao = new showShDaoImpl();
	@Override
	public JSONObject findAllProduct(int page,int rows) {
		JSONObject j = new JSONObject();
		j.put("total", sDao.getProductCount());
		j.put("rows", sDao.getAllProduct(page, rows));
		return j;
	}

}
